/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2021/5/22
 * Time: 0:20
 */

#include "CustomSeries.h"
CustomSeries::CustomSeries(QObject * parent)
{
}

void CustomSeries::MapCustomSeries(int index, CustomSeries * customSeries)
{
    custom_series_map_[index] = customSeries;
}

QStringList CustomSeries::Categories()
{
    return categories_;
}

CustomSeries * CustomSeries::OwnSeries(int index)
{
    return custom_series_map_.value(index);
}

const QStringList & CustomSeries::GetCategories() const
{
    return categories_;
}

void CustomSeries::SetCategories(const QStringList & categories)
{
    categories_ = categories;
}

int CustomSeries::GetMaxValue() const
{
    return max_value_;
}

void CustomSeries::SetMaxValue(int maxValue)
{
    max_value_ = maxValue;
}
